Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODLinkSource


Clear

The Clear method clears the content of this link-source object.

void Clear (in ODUpdateID id,
            in ODLinkKey key);
id
The update ID associated with the new empty content.
key
A valid link key obtained by a prior call to the Lock method.
DISCUSSION
If your part is the source part for this link-source object, you call this method to remove the link-source object's previous content before updating the source data. This method removes all data in the contents property (kODPropContents) from the link-source object's content storage unit.

The id parameter identifies the new version of this link-source object's content; its value depends on the circumstance in which this method is called:

The key parameter ensures thread safety. Before calling this method, you must call this link-source object's Lock method to obtain this key.

EXCEPTIONS
kODErrInvalidLinkKey
The key parameter is not a valid key for this link-source object.
kODErrInvalidPermissions
Draft permissions do not allow modifications.
kODErrUnknownUpdateID
The specified update ID is the reserved value kODUnknownUpdate.
SEE ALSO
The ODLinkKey type (page 924).
The ODUpdateID type (page 917).
The ODLinkSource::GetContentStorageUnit method (page 380).
The ODLinkSource::GetUpdateID method (page 381).
The ODLinkSource::Lock method (page 382).
The ODSession::UniqueUpdateID method (page 623).
"Updating a Link at the Source" on page 386 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help